From 08d26f71bcb73e9f799515324539cb0348ce1c00 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 16 Dec 2010 17:39:24 +0000 Subject: [PATCH] tools/xl: fix race which can leave an xl monitor processing hanging If the domain is destroyed (eg with xl destroy), it is possible that the xl which is monitoring the domain for restart/preserve will not be able to get the domain shutdown reason. Before this patch, it would then ignore the domain death event and carry on waiting, forever, for more events. Signed-off-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index a0d5da0826..33a54033b1 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1848,6 +1848,9 @@ start: ret = 0; goto out; } + } else { + LOG("Unable to get domain death info, quitting"); + goto out; } break; case LIBXL_EVENT_DISK_EJECT: -- 2.30.2